/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cheetah.youbet.core.xls;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import net.java.amateras.xlsbeans.XLSBeans;
import net.java.amateras.xlsbeans.XLSBeansException;
import net.java.amateras.xlsbeans.annotation.LabelledCell;
import net.java.amateras.xlsbeans.annotation.LabelledCellType;
import net.java.amateras.xlsbeans.annotation.Sheet;

/**
 *
 * @author edoardo
 */
//@Sheet(name = "Palinsesto calcio")
@Sheet(name = "Utenti")
public class XlsExt {

    @LabelledCell(label = "Title", type = LabelledCellType.Bottom)
    private String title;

    public String getTipoSport() {
        return title;
    }

    public void setTipoSport(String tipoSport) {
        System.out.println("tipoSport "+tipoSport);
        this.title = tipoSport;
    }

    public static void main(String[] args) throws XLSBeansException, FileNotFoundException {
//        XlsExt ext = new XLSBeans().load(new FileInputStream("/Users/edoardo/Downloads/Palinsesto calcio(1).xls"), XlsExt.class);
        XlsExt ext = new XLSBeans().load(new FileInputStream("/Users/edoardo/Downloads/xlsbeanstest.xls"), XlsExt.class);
        
        System.out.println(ext.getTipoSport());
    }

}
